import smtplib

fromaddr = 'dmails@gmail.com'

# Credentials (if needed)
username = 'fakelogind'
password = 'dmails123'

def sendEmail(toaddrs,subject,msg):
    toaddrs = (toaddrs,)
    # The actual mail send
    msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n"
           % (fromaddr,", ".join(toaddrs),subject)) + msg
    server = smtplib.SMTP('smtp.gmail.com:587')
    server.starttls()
    server.login(username,password)
    server.sendmail(fromaddr, toaddrs, msg)
    server.quit()
    return True
